package seres;

public class Marciano extends Guerrero {

    private static int total = 0;
  //  private String soy;

    public static int getTotal() {
        return total;

    }

    public void recibeDisparo(int i) {

        if (vivo && blanco == i) {
            vivo = false;
            total--;
            System.out.println(soy + "Muerto por Disparo No " + i);
        }

    }

    public Marciano(String soy) {
        super(soy);
       // this.soy = soy;
        total++;
    }

    @Override
    public void recibeDisparo() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

}
